package me.spring.cloud.components.starter.es;

import me.spring.cloud.components.starter.es.configure.ElasticsearchJestAutoConfiguration;
import me.spring.cloud.components.starter.es.configure.ElasticsearchJestDataAutoConfiguration;
import me.spring.cloud.components.starter.es.properties.ElasticsearchJestProperties;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.boot.autoconfigure.data.elasticsearch.ElasticsearchProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;

/**
 * 开启elasticSearch jest配置
 * @author luffy
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@EnableConfigurationProperties({ElasticsearchJestProperties.class, ElasticsearchProperties.class})
@Import({ElasticsearchJestAutoConfiguration.class, ElasticsearchJestDataAutoConfiguration.class})
public @interface EnableEsJest {

}
